package cn.edu.wynu.thisdemo;

public class Student {
    double score;
    public void printThis(){
        System.out.println(this);
    }

    // 判断分数是否过线
    public void printPass(double score) {
        if (this.score > score) {
            System.out.println("恭喜你分数过了国家线！");
        } else {
            System.out.println("再接再厉！");
        }
    }
}
